package org.easymis.crm.modules.crm.service.impl;

import java.util.HashMap;
import java.util.List;

import org.easymis.crm.modules.crm.entitys.mybatis.dto.CrmBusiness;
import org.easymis.crm.modules.crm.entitys.mybatis.mapper.CrmBusinessMapper;
import org.easymis.crm.modules.crm.service.CrmBusinessService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class CrmBusinessServiceImpl implements CrmBusinessService {
	@Autowired
	private CrmBusinessMapper mapper;
	@Override
	public List<CrmBusiness> getList(CrmBusiness bean) {
		// TODO Auto-generated method stub
		return mapper.getList(new HashMap<String, Object>());
	}

	@Override
	public List<CrmBusiness> getWatched(CrmBusiness bean) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getCount(CrmBusiness bean) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void save(CrmBusiness bean) {
		// TODO Auto-generated method stub
		mapper.save(bean);
	}

	@Override
	public void update(CrmBusiness bean) {
		// TODO Auto-generated method stub
		mapper.update(bean);
	}

	@Override
	public void delete(String businessId) {
		// TODO Auto-generated method stub
		mapper.delete(businessId);
	}

	@Override
	public void remove(String[] ids, String deleteId, String deleteName) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void restore(String[] ids) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(String[] ids) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public CrmBusiness findById(String businessId) {
		// TODO Auto-generated method stub
		return mapper.findById(businessId);
	}

}
